import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '@/plugins/lazyLoad'
import '@/plugins/veeValidate'
import { Button,Message,MessageBox } from 'element-ui';
import TypeNav from '@/components/TypeNav'
import SwiperLoop from '@/components/SwiperLoop'
import Pagination from '@/components/Pagination'
import store from '@/store'
import * as Axios from '@/ajax'
import '@/mock/mockServer'
import 'swiper/css/swiper.min.css'
Vue.config.productionTip = false
Vue.component('TypeNav',TypeNav)
Vue.component('SwiperLoop',SwiperLoop)
Vue.component('Pagination',Pagination)
Vue.use(Button)
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$message = Message;
new Vue({
  beforeCreate() {
    Vue.prototype.$Axios = Axios
    Vue.prototype.$bus = this
  },
  render: h => h(App),
  router,
  store
}).$mount('#app')
